namespace Cos.Core.NHibernate.Mapping
{
    #region Usings

    using FluentNHibernate.Mapping;

    #endregion

    public class CustomUserFieldCultureMap : ClassMap<CustomUserFieldCultureDataModel>
    {
        public CustomUserFieldCultureMap()
        {
            this.Table("CustomUserField_Culture");
            this.LazyLoad();
            this.CompositeId()
                .KeyProperty(x => x.CustomUserFieldName, "CustomUserFieldName")
                .KeyProperty(x => x.ApplicationName, "ApplicationName")
                .KeyProperty(x => x.CultureCode, "CultureCode");

            this.Map(x => x.Label).Column("Label");

            // References(x => x.CustomUserField).Column("CustomUserFieldName");
            // References(x => x.CustomUserField).Column("ApplicationName");
            // References(x => x.Culture).Column("CultureCode");
        }
    }
}